package com.jiayu.wheel.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @author LiXingShuai
 * @ClassName SessionController
 * @description: TODO
 * @date 2023年02月12日
 * @version: 1.0
 */
@RestController
@RequestMapping("/session")
public class SessionController {

    @GetMapping("/id")
    public String getSessionId(HttpSession httpSession){
        return httpSession.getId();
    }
}
